package com.infowarelab.config.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.validator.NotNull;
import org.jradweb.core.orm.AbstractModel;
import org.jradweb.core.orm.validator.Unique;

/**
 * Model class Service.
 * 
 * Created on Mon Jun 30 14:41:43 CST 2008
 * @author Code Generator
 * @version $Id: Service.java 156 2008-10-16 09:30:36Z wagzhi $
 */
@Entity
@Table(name="config_service")
@Unique(propertyName="name")
public class Service extends AbstractModel<Service>{
	/**
	 * 
	 */
	private static final long serialVersionUID = -6602476985246123692L;
	private String name;
	private String contextPath;
	private String version;
	@Column(name="name")
	@NotNull
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	@Column(name="context_path")
	@NotNull
	public String getContextPath() {
		return contextPath;
	}
	public void setContextPath(String contextPath) {
		this.contextPath = contextPath;
	}
	@Column(name="version")
	public String getVersion() {
		return version;
	}
	public void setVersion(String version) {
		this.version = version;
	}
}
